package com.none.web.model;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Activity model,useing mapping database
 * 
 * @author Dave 20141106
 */
@Entity
@Table(name = "t_voting_appuser")
public class TVotingAppUser implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */

	@Id
	private String id;// UUID
	private String userId;//
	private String votingId;//
	private String itemId;//
	private String optionId;//
	private Timestamp votedTime;

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "voting_id")
	public String getVotingId() {
		return votingId;
	}

	public void setVotingId(String votingId) {
		this.votingId = votingId;
	}

	@Column(name = "user_id")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "item_id")
	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	@Column(name = "option_id")
	public String getOptionId() {
		return optionId;
	}

	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	@Column(name = "voted_time")
	public Timestamp getVotedTime() {
		return votedTime;
	}

	public void setVotedTime(Timestamp votedTime) {
		this.votedTime = votedTime;
	}

}
